package com.jzo2o.customer.controller.open;

import com.jzo2o.customer.model.dto.request.RegistryReqDto;
import com.jzo2o.customer.service.IRegistService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author itcast
 */
@RestController
@RequestMapping("/open/serve-provider/institution")
@Api(tags = "服务 - 客户登录相关接口")
public class InstitutionController {
    @Resource
    private IRegistService registService;
    @ApiOperation("机构/服务人员注册")
    @PostMapping("/register")
    public void register(@RequestBody RegistryReqDto registryReqDto) {
        registService.registUser(registryReqDto);
    }

}
